﻿using System.Collections.Generic;

namespace Domain
{
//    create table Customer
//(
//    ID int not null primary key,
//    Name nvarchar(30) not null
//)
    public class Customer
    {
        public Customer()
        {
            Purchases=new HashSet<Purchase>();
        }
        public int ID { get; set; }
        public string Name { get; set; }
        //延时加载
        public virtual ICollection<Purchase> Purchases { get; set; }
    }
}